<%@page contentType="text/html" pageEncoding="UTF-8"%>
<c:set var="contexto" scope="session" value="${pageContext.request.contextPath}"/>
<div style="text-align:right">
<!-- Usuario logado -->
<c:choose>
  <c:when test='${usuario != null}'>
    Bem-vindo <c:out value="${usuario.nome}"/>. [<a href="${contexto}/usuario/logout.do">Sair</a>]
  </c:when>
  <c:otherwise>
    <img src="${contexto}/img/chave.png" border="0" alt="login"/>
    <a href="${contexto}/usuario/loginform.do">Fazer login</a>
  </c:otherwise>
</c:choose>
</div>
